﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="Khoa.aspx.cs" Inherits="WTSQCB.Khoa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp; Quản lý khoa</p>
        <asp:GridView ID="KhoaGridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="MaKhoa" DataSourceID="SqlDataSource1" AllowPaging="True" OnSelectedIndexChanged="KhoaGridView1_SelectedIndexChanged" Width="980px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <Columns>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="CHỌN" />
                <asp:BoundField DataField="MaKhoa" HeaderText="Mã khoa" ReadOnly="True" SortExpression="MaKhoa" />
                <asp:BoundField DataField="TenKhoa" HeaderText="Tên khoa" SortExpression="TenKhoa" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    <asp:Panel ID="Panel1" runat="server">
        &nbsp;
        <br />
        &nbsp;<asp:Button ID="ThemButton1" runat="server" OnClick="ThemButton1_Click" Text="THÊM" Width="80px" />
&nbsp;&nbsp;<asp:Button ID="SuaButton2" runat="server" OnClick="SuaButton2_Click" Text="SỬA" Width="80px" />
&nbsp;
        <asp:Button ID="XoaButton3" runat="server" OnClick="XoaButton3_Click" OnClientClick="return confirm('Bạn có muốn XÓA không ?')" Text="XÓA" Width="80px" />
        <br />
        <br />
        &nbsp;Thông tin chi tiết:<br />
        <br />
&nbsp;<asp:Label ID="Label1" runat="server" Text="Mã khoa:"></asp:Label>
        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="MaKhoaTextBox1" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MaKhoaTextBox1" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Mã khoa không được để trống</asp:RequiredFieldValidator>
        <br />
        <br />
&nbsp;<asp:Label ID="Label2" runat="server" Text="Tên khoa:"></asp:Label>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:TextBox ID="TenKhoaTextBox2" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TenKhoaTextBox2" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Tên khoa không được để trống</asp:RequiredFieldValidator>
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebDiemTSQCBConnectionString %>" SelectCommand="SELECT * FROM [Khoa]"></asp:SqlDataSource>
    </asp:Panel>
    <p>
    </p>
</asp:Content>
